# coding=UTF-8
#!/bin/env python
import fileinput
import sys
import io

argLen = len(sys.argv)
if argLen != 3:
	print "参数错误：", str(sys.argv)
else:
	fileName = sys.argv[1]
	removeLineStr = sys.argv[2]

	with io.open(fileName,"r",encoding="utf-8") as f:
	    lines = f.readlines()
	    #print(lines)
	with io.open(fileName,"w",encoding="utf-8") as f_w:
	    for line in lines:
	        if removeLineStr in line:
	            continue
	        f_w.write(line)

